package com.example.three.Service.OfficeOrderService;

import com.example.three.DO.SysOfficeOrder;
import com.example.three.Mapper.OfficeOrderMapper.OrderMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service
@Transactional
public class OrderServiceImpl implements OrderService{
    @Resource
    private OrderMapper orderMapper;
    @Override
    public List<SysOfficeOrder> findBy() {
        return orderMapper.findBy();
    }

    @Override
    public List<SysOfficeOrder> findByAll(){
        return orderMapper.findByAll();
    }

    @Override
    public int updataorder(String orderId) {
        return orderMapper.updataorder(orderId);
    }

    @Override
    public int updataordership(String orderId) {
        return orderMapper.updataordership(orderId);
    }

    @Override
    public SysOfficeOrder findBy1(String orderId) {
        return orderMapper.findBy1(orderId);
    }

    @Override
    public List<SysOfficeOrder> findByship(){
        return orderMapper.findByship();
    }

    @Override
    public List<SysOfficeOrder> findByselectall(String prod_name){
        return orderMapper.findByselectall(prod_name);
    }

    public List<SysOfficeOrder> findByselectBy(String prod_name){
        return orderMapper.findByselectBy(prod_name);
    }

    public List<SysOfficeOrder> findByselectship(String prod_name){
        return orderMapper.findByselectship(prod_name);
    }

}
